MODULE	'exec/lists',
			'exec/semaphores',
			'graphics/gfx',
			'graphics/gfxnodes'

OBJECT AnalogSignalInterval
	Start:UWORD,
	Stop:UWORD

OBJECT SpecialMonitor
	XLN:XLN,
	Flags:UWORD,
	Do_monitor:LONG,
	Reserved1:LONG,
	Reserved2:LONG,
	Reserved3:LONG,
	HBlank:AnalogSignalInterval,
	VBlank:AnalogSignalInterval,
	HSync:AnalogSignalInterval,
	VSync:AnalogSignalInterval

OBJECT MonitorSpec
	XLN:XLN,
	Flags:UWORD,
	RatioH:LONG,
	RatioV:LONG,
	Total_Rows:UWORD,
	Total_ColorClocks:UWORD,
	DeniseMaxDisplayColumn:UWORD,
	BeamCon0:UWORD,
	Min_Row:UWORD,
	Special:PTR TO SpecialMonitor,
	OpenCount:UWORD,
	Transform:LONG,
	Translate:LONG,
	Scale:LONG,
	XOffset:UWORD,
	YOffset:UWORD,
	LegalView:Rectangle,
	MaxOScan:LONG,
	VideOScan:LONG,
	DeniseMinDisplayColumn:UWORD,
	Displaycompatible:LONG,
	DisplayInfoDataBase:LH,
	Didbsemaphore:SS,
	MrgCop:LONG,
	LoadView:LONG,
	KillView:LONG

CONST	MSB_REQUEST_NTSC=0,
		MSB_REQUEST_PAL=1,
		MSB_REQUEST_SPECIAL=2,
		MSB_REQUEST_A2024=3,
		MSB_DOUBLE_SPRITES=4,
		MSF_REQUEST_NTSC=1,
		MSF_REQUEST_PAL=2,
		MSF_REQUEST_SPECIAL=4,
		MSF_REQUEST_A2024=8,
		MSF_DOUBLE_SPRITES=16,
		STANDARD_VIEW_X=$81,
		STANDARD_VIEW_Y=$2C,
		TO_MONITOR=0,
		FROM_MONITOR=1,
		STANDARD_XOFFSET=9,
		STANDARD_YOFFSET=0,
		REQUEST_NTSC=1,
		REQUEST_PAL=2,
		REQUEST_SPECIAL=4,
		REQUEST_A2024=8,
		STANDARD_MONITOR_MASK=3,
		STANDARD_NTSC_ROWS=262,
		STANDARD_PAL_ROWS=312,
		STANDARD_COLORCLOCKS=226,
		STANDARD_DENISE_MAX=455,
		STANDARD_DENISE_MIN=93,
		STANDARD_NTSC_BEAMCON=0,
		STANDARD_PAL_BEAMCON=$20,
		SPECIAL_BEAMCON=$1B8A,
		MIN_NTSC_ROW=21,
		MIN_PAL_ROW=29,
		STANDARD_VIEW_X=$81,
		STANDARD_VIEW_Y=$2C,
		STANDARD_HBSTRT=$6,
		STANDARD_HSSTRT=$B,
		STANDARD_HSSTOP=$1C,
		STANDARD_HBSTOP=$2C,
		STANDARD_VBSTRT=$122,
		STANDARD_VSSTRT=$2A6,
		STANDARD_VSSTOP=$3AA,
		STANDARD_VBSTOP=$1066,
		VGA_COLORCLOCKS=113,
		VGA_TOTAL_ROWS=131,
		VGA_DENISE_MIN=59,
		MIN_VGA_ROW=29,
		VGA_HBSTRT=$8,
		VGA_HSSTRT=$0E,
		VGA_HSSTOP=$1C,
		VGA_HBSTOP=$1E,
		VGA_VBSTRT=0,
		VGA_VSSTRT=$153,
		VGA_VSSTOP=$235,
		VGA_VBSTOP=$CCD,
		BROADCAST_HBSTRT=$1,
		BROADCAST_HSSTRT=$6,
		BROADCAST_HSSTOP=$17,
		BROADCAST_HBSTOP=$27,
		BROADCAST_VBSTRT=0,
		BROADCAST_VSSTRT=$2A6,
		BROADCAST_VSSTOP=$054C,
		BROADCAST_VBSTOP=$1C40,
		BROADCAST_BEAMCON=$808,
		RATIO_FIXEDPART=4,
		RATIO_UNITY=16

#define DEFAULT_MONITOR_NAME 'default.monitor'
#define NTSC_MONITOR_NAME 'ntsc.monitor'
#define PAL_MONITOR_NAME 'pal.monitor'
#define VGA_MONITOR_NAME 'vga.monitor'
